{% extends 'base.html' %}
{% block title %}
  留言板首页
{% endblock %}
{% block styles %}
{{ super() }}
    <style>
        #container{
            padding-top: 20px;
            width: 1000px;
            height: 600px;
            margin: 0 auto;
        }
        .article{
            width: 900px;
            background-color: antiquewhite;
            height: 100px;
            margin-bottom: 20px;
            border-bottom: 1px solid gray;
        }

    </style>
{% endblock %}

{% block newcontent %}

    <div id="container">
        <th><a href="{{ url_for('article.publish_article') }}?id={{ user.id }}">添加</a></th>
            {% for article in articles %}
                <div class="article">{{ article.content }}
                <th>{{article.user.username}}</th>
                <th>{{article.pdatetime}}</th>

                </div>
            {% endfor %}
    </div>
{% endblock %}